home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / games2 / rotise12.zip / ROTISE.H < prev    next >
Text File  |  1993-03-28  |  887b  |  33 lines

  1. #ifdef __TURBOC__
  2. #define __ANSI__
  3. #endif
  4.  
  5. #include <stdio.h>
  6.  
  7. #include "portab.h"
  8.  
  9. /* some other special defines */
  10. #define MAX_TOKENS 20                        /* maximum # of command line tokens */
  11. #define MAX_WEEKS 30                            /* Max number of weeks we do */
  12. #define MAX_DATE 5                            /* Size of date string */
  13. #define MAX_TEAMS 15                            /* Max # of teams in league */
  14.  
  15. typedef struct _cmdlist {
  16.     char *cmd;                                    /* full name of command */
  17.     char *usage;                                /* Quicky help string */
  18.     BOOL (*cmd_func) PROTO( (int tokcnt, char *tokens[]) );
  19.                                                     /* Command functions */
  20. } CMDLIST;
  21.  
  22.  
  23. #define VERBOSE( level, format, what ) \
  24.     if ( Verbose >= level ) \
  25.         fprintf( stderr, format, what );
  26.  
  27. #define ARGCNT_ERR() \
  28.     {    rdb_error( "Not enough paramters.  Usage:\n", CmdTable[Cmd].cmd );\
  29.     rdb_error( " ", CmdTable[Cmd].usage ); \
  30.     return TRUE; }
  31.  
  32. #include "proto.h"
  33.